import http from "@/api";
import qs from "qs";
//获取报表数据
export const getReportData = params => {
  return http.get("/pages/reports!statReportRead.action", params);
};
//获取技术员数据报表
export const getPurestatReport = params => {
  return http.get("/pages/reports!PurestatReport.action", params);
};
//获取配置项报表
export const getConfigReport = params => {
  return http.get("/pages/reports!PurestatReport.action", params);
};
//获取回访记录列表
export const getReturnVisitList = params => {
  return http.post(
    "/pages/userReturnVisit!findPagerReturnVisit.action?queryDTO.companyNo=1",
    qs.stringify({
      _search: false,
      rows: params.pageSize,
      page: params.pageNum,
      sidx: "visitId",
      sord: "desc"
    })
  );
};
